//
//  NSDate+Additions.m
//  OrderSeat
//
//  Created by 王威 on 13-11-7.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import "NSDate+Additions.h"

@implementation NSDate (Additions)

- (NSString *)toString
{
    return [self toStringWithFormat:@"yyyy年MM月dd日"];
}

- (NSString *)toStringWithFormat:(NSString*)format
{
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    [dateFormatter setDateFormat:format];
    NSString *date = [dateFormatter stringFromDate:self];
    return date;
}

@end
